const Tabs = {
  create: (createProperties = {}) => {
    return new Promise((resolve => {
      chrome.tabs.create(createProperties, (tab) => {
        resolve(tab)
      })
    }))
  },
  query: (params = {}) => {
    return new Promise((resolve => {
      chrome.tabs.query(params, (tabs) => {
        resolve(tabs)
      })
    }))
  }
}

export default Tabs